package io.renren.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.dao.MedicalEnjoyManagementDao;
import io.renren.entity.MedicalEnjoyManagementEntity;
import io.renren.service.MedicalEnjoyManagementService;



@Service("medicalEnjoyManagementService")
public class MedicalEnjoyManagementServiceImpl implements MedicalEnjoyManagementService {
	@Autowired
	private MedicalEnjoyManagementDao medicalEnjoyManagementDao;
	
	@Override
	public MedicalEnjoyManagementEntity queryObject(Integer id){
		return medicalEnjoyManagementDao.queryObject(id);
	}
	
	@Override
	public List<MedicalEnjoyManagementEntity> queryList(Map<String, Object> map){
		return medicalEnjoyManagementDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return medicalEnjoyManagementDao.queryTotal(map);
	}
	
	@Override
	public void save(MedicalEnjoyManagementEntity medicalEnjoyManagement){
		medicalEnjoyManagementDao.save(medicalEnjoyManagement);
	}

	@Override
	public void update(MedicalEnjoyManagementEntity medicalEnjoyManagement){
		medicalEnjoyManagementDao.update(medicalEnjoyManagement);
	}
	
	@Override
	public void delete(Integer id){
		medicalEnjoyManagementDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		medicalEnjoyManagementDao.deleteBatch(ids);
	}
	
}
